package com.macro.mall.tiny.modules.oms.service;

import com.macro.mall.tiny.component.wx.entity.bo.WxBO;
import com.macro.mall.tiny.component.wx.entity.bo.WxPayBO;
import com.macro.mall.tiny.modules.oms.controller.OmsOrderController;
import com.macro.mall.tiny.modules.oms.model.OmsOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.macro.mall.tiny.modules.oms.model.dto.CreateOmsOrderDTO;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author tyrone
 * @since 2024-10-25
 */
public interface OmsOrderService extends IService<OmsOrder> {

    @Transactional
    OmsOrder createOrder(CreateOmsOrderDTO createOmsOrderDTO) throws Exception;

    void handlePayResult(WxPayBO bo);
}
